package edu.niu.mcaslab;

import android.content.Context;
import android.content.res.Resources;

/**
 * Created by al_ho on 2013/6/28.
 */
public class Utilities {
    private final static String packageName = "edu.niu.mcaslab.permission_explorer";
    public static AppPermissionDatabase database;

    public static String getStringResourceByName(String name, Resources res, Context context) {
        int resId = res.getIdentifier(name, "string", packageName);
        return context.getString(resId);
    }
}
